//按字符读取
#include <stdio.h>
#include <stdlib.h>
#define BUFSIZE 1024

int main(void)
{
    FILE *fp_r,*fp_w;
    int ch;

    char arr_code[BUFSIZE];

    fp_r = fopen("haoma.txt", "r");

    if(fp_r == NULL)
    {
        perror("haoma.txt can not open!");
        exit(1);
    }
    
    ch = fgetc(fp_r);
    while(ch != EOF)
    {
        printf("%c", ch);
        ch = fgetc(fp_r);
    }


    
    printf("\n");

    return 0;
}